| Total Complexity | 4 | 
| Total Lines | 38 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | import {Entity, Column, PrimaryGeneratedColumn} from 'typeorm'; | 
            ||
| 2 | |||
| 3 | @Entity()  | 
            ||
| 4 | export class File { | 
            ||
| 5 |   @PrimaryGeneratedColumn('uuid') | 
            ||
| 6 | private id: string;  | 
            ||
| 7 | |||
| 8 |   @Column({type: 'varchar', nullable: false}) | 
            ||
| 9 | private name: string;  | 
            ||
| 10 | |||
| 11 |   @Column({type: 'integer', nullable: false}) | 
            ||
| 12 | private size: number;  | 
            ||
| 13 | |||
| 14 |   @Column({type: 'varchar', nullable: false}) | 
            ||
| 15 | private extension: string;  | 
            ||
| 16 | |||
| 17 |   @Column({type: 'timestamp', default: () => 'CURRENT_TIMESTAMP'}) | 
            ||
| 18 | private uploadedAt: Date;  | 
            ||
| 19 | |||
| 20 |   constructor(name: string, size: number, extension: string) { | 
            ||
| 21 | this.name = name;  | 
            ||
| 22 | this.size = size;  | 
            ||
| 23 | this.extension = extension;  | 
            ||
| 24 | }  | 
            ||
| 25 | |||
| 26 |   public getId(): string { | 
            ||
| 27 | return this.id;  | 
            ||
| 28 | }  | 
            ||
| 29 | |||
| 30 |   public getName(): string { | 
            ||
| 31 | return this.name;  | 
            ||
| 32 | }  | 
            ||
| 33 | |||
| 34 |   public getSize(): number { | 
            ||
| 35 | return this.size;  | 
            ||
| 36 | }  | 
            ||
| 37 | |||
| 38 |   public getExtension(): string { | 
            ||
| 39 | return this.extension;  | 
            ||
| 40 | }  | 
            ||
| 42 |